Gis: Multiple Conditional Statements For Raster Calculation In R